package com.zhuxiaomei.utils;

import com.alibaba.fastjson2.JSON;
import com.zhuxiaomei.dto.ws.WSResult;
import org.springframework.beans.BeanUtils;


/**
 * @author hxm
 * @date 2024/12/23 20:00
 * @description
 */
public class MessageUtils {
    public static String getMessage(WSResult wsResult){
        WSResult result = new WSResult();
        BeanUtils.copyProperties(wsResult, result);
        return JSON.toJSONString(result);
    }
}
